﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LawyerManageList.aspx.cs" Inherits="HFWebManage.Lawyer.LawyerManageList" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <link href="../css/main.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function ConfirmDel(el_message) {
            if (confirm(el_message)) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
</head>
<form id="theForm" runat="server">
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <br>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <th colspan="7">最新注册律师</th>
        </tr>
        <tr>
            <td class="usertablerow3" width="5%"><input  type="checkbox" onclick="doSelectItem(1); " /></td>
            <td class="usertablerow3" width="5%"><b>ID</b></td>
            <td class="usertablerow3" width="25%"><b>律师帐号</b></td>
            <td class="usertablerow3" width="20%"><b>电子邮箱</b></td>
            <td class="usertablerow3" width="20%"><b>律师执业证号</b></td>
            <td class="usertablerow3" width="10%"><b>推荐首页</b></td>
            <td class="usertablerow3" width="15%"><b>操作</b></td>
        </tr>
        
        <%
            string stylestr = "usertablerow1";
            foreach (hf.Model.Lawyer i in list)
            { %>
        <tr>
               <td class="<%=stylestr %>" width="5%"><input  type="checkbox" name="cid1" value="<%=i.ID %>" /></td>
               <td class="<%=stylestr %>"><%=i.ID %></td>
               <td class="<%=stylestr %>"><%=i.UID%></td>
               <td class="<%=stylestr %>"><%=i.Email%></td>
               <td class="<%=stylestr %>"><%=i.LawyerNo%></td>
               <td class="<%=stylestr %>"><%=i.isIndex%></td>
               <td class="<%=stylestr %>"><a href="Lawyer.aspx?action=modify&ID=<%=i.ID %>">修改</a> <a onclick="return ConfirmDel('确定删除吗？');" href="LawyerManageList.aspx?action=delete&ID=<%=i.ID %>">删除</a></td>
        </tr>
        <%
                if (stylestr == "usertablerow1")
                {
                    stylestr = "usertablerow2";
                }else{
                    stylestr = "usertablerow1";
                }
            } %>
            <tr>
                <td colspan="6">
                    <input id="Button1" type="submit" value="批量删除" /></td>
            </tr>
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <td class="usertablerow1" >
                <asp:Label ID="pager" runat="server" Text=""></asp:Label></td>
        </tr>
    </table>
    <br />
</body>
</form>
</html>

